﻿using ModernChannel.Model.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ModernChannel.Model.Interface
{
    public interface IRegionProvider
    {
        List<Region> SearchRegions(out int totalRecord, string textSearch = "", int pagesize = 0, int pageindex = 0);

        List<Region> SearchRegions(out int totalRecord, string regionIdentifier, string regionName, int pagesize = 0, int pageindex = 0);

        Region RetrieveRegion(string regionIdentifier);

        bool Add(Region record);

        bool Update(Region record);

        bool Delete(string regionId);
    }
}
